extends Area2D


# Declare member variables here. Examples:
# var a = 2
# var b = "text"

const speed = 100
# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.

func _process(delta):
	translate(Vector2(1,0)*delta*speed)
	
func _on_Bullet_body_entered(body):
	if body.has_meta("isEnemy"):
		body.queue_free()
		self.queue_free()
	pass # Replace with function body.
